package com.zzxy.springmvc12.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UerController implements Controller {


    @Override
    public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
        ModelAndView modelAndView = new  ModelAndView("/user/userList");
        modelAndView.addObject("username","zhangsanfeng");
        modelAndView.addObject("password","123456");
        return modelAndView;
    }
}